package models;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class CSVDocument extends Document {
	Scanner scaner;

	public CSVDocument(String file) throws FileNotFoundException {
		super(file);
		scaner = new Scanner(new File(file));
	}

	public String[] readObject() {
		if (scaner.hasNext()) {
			return scaner.nextLine().split(",");
		}
		return null;
	}
}
